const shell = require('shelljs');
const fs = require("fs");
const path = require('path')
module.exports = app => {
    return class IndexController extends app.Controller {
        async index() {
            let ctx = this.ctx;
            this.ctx.body = {
                msg: 'O(∩_∩)O哈哈~',
                query: ctx.query,
                body: ctx.request.body
            }
        }

        // 自动更新代码,重新部署
        async deploy() {
            let ctx = this.ctx;
            this.ctx.body = {
                query: ctx.query,
                body: ctx.request.body
            }
        }
    };
};
